const breadDao = require('../dao/breadDao');



//获取面包数据
module.exports.find = async function(page,searchParams){
   return await breadDao.find(page,searchParams);
}

// id查找
module.exports.findById = async function(id){
   return await breadDao.findById(id);
}

// 添加
module.exports.insert = async function(bread){
   return await breadDao.insert(bread);
}

// 删除
module.exports.delete = async function(id){
   return await breadDao.delete(id);
}

// 修改
module.exports.update = async function(bread){
   return await breadDao.update(bread);
}